//
// Created by 19594 on 25-10-27.
//

#include "AHT20.h"
#include "i2c.h"
void AHT20_StartConversion(void) {
    uint8_t buf[3];
    buf[0]=0xac;buf[1]=0x33;buf[2]=0x00;
    HAL_I2C_Master_Transmit(&hi2c1,0x70,buf,3,100);
}
void AHT20_ReadData(uint8_t *DataArray) {
    HAL_I2C_Master_Receive(&hi2c1,0x70,DataArray,6,100);
}
